import Layout from "@/layout/Index.vue";
import MainView from "@/layout/components/MainView.vue";
import Permission from "@/common/auth/Permission.vue";
import GroupRoleManageView from "@/common/auth/GroupRoleManageView.vue";
import User from "@/common/auth/User.vue";

export const authRouters = {
    path: "/auth",
    name: "auth",
    component: Layout,
    meta: {
        title: '系统权限设管理',
        icon: 'el-icon-setting'
    },
    children: [{
        path: "user",
        name: "user",
        component: User,
        meta: {
            title: '用户管理',
            icon: 'el-icon-user',
            permissions: ['user'],
        },
    }, {
        path: "group_role",
        name: "group_role",
        component: GroupRoleManageView,
        meta: {
            title: '组织及授权',
            icon: 'el-icon-s-operation',
            permissions: ['group_role'],
        },
    }, {
        path: "permission",
        name: "permission",
        component: Permission,
        meta: {
            title: '权限内容管理',
            icon: 'el-icon-tickets',
            permissions: ['permission'],
        },
    },
    ]
}